#include <stdio.h>
#include <stdlib.h>
#include <complex.h>

int main(int argc, char** argv){
  double complex c1,c2;
  double complex c3[2];
  double* d;
  c1 = 1.0 + 2.0 * I;
  c2 = ccos(c1);
  c3[0] = c1;
  c3[1] = c2;
  d = (double*)c3;
  printf("c2 = %f + %f I \n", creal(c2), cimag(c2));
  printf("d = %f, %f, %f, %f\n \n", d[0], d[1], d[2], d[3]);
  return 0;

}
